home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / falcon / programm.ing / falclib2.lzh / ROUTS / GEM.S < prev    next >
Text File  |  1994-08-12  |  503b  |  35 lines

  1. *
  2. * GEM.S
  3. *
  4. *    @gemdos    macro
  5. * In     #functionnbr, #stackcorrection
  6. * ex.     @gemdos 1,2    ;waits for a key
  7. *
  8. *    @xbios    macro
  9. * In     #functionnbr, #stackcorrection
  10. * ex.     @xbios 37,2    ;waits for vsync
  11. *
  12. *    @gem    macro
  13. * In     #functionnbr, #trapnbr, #stackcorrection
  14. * ex.     @gem 1,1,2    ;waits for a key
  15. *
  16.  
  17.  
  18. @gemdos    macro
  19.     move    #\1,-(sp)
  20.     trap    #1
  21.     add.l    #\2,sp
  22.     endm
  23.  
  24. @xbios    macro
  25.     move    #\1,-(sp)
  26.     trap    #14
  27.     add.l    #\2,sp
  28.     endm
  29.  
  30. @gem    macro
  31.     move    #\1,-(sp)
  32.     trap    #\2
  33.     add.l    #\3,sp
  34.     endm
  35.